#include<stdio.h>
int main ()
{
	int n;
	while(scanf("%d",&n)!=EOF)
	{

		int i=0;
		int a[100];
		while(n!=0)
		{
			if(n%2>=10)
			{
				a[i]=n%2;
			}
			else
			{
				a[i]=n%2;
			}
			n/=2;
			i++;
		}
		int temp=i;
		for(i=temp-1; i>=0; i--)
		{
			printf("%d",a[i]);
		}
		printf("\n");
	}
	return 0;
}
